include(FindPackageHandleStandardArgs)

if(GEN2LIB_INCLUDE_DIR AND GEN2LIB_LIBRARIES)
	set(GEN2LIB_FIND_QUIETLY TRUE)
endif(GEN2LIB_INCLUDE_DIR AND GEN2LIB_LIBRARIES)
	find_path(GEN2LIB_INCLUDE_HINT string.h)
	find_path(GEN2LIB_INCLUDE_DIR demolib.h HINTS ${DEMOLIB_INCLUDE_HINT})
	find_library(GEN2LIB_LIBRARIES gen2lib HINTS $ENV{PROGRAMFILES}/gen2/lib/ /usr/lib)
	find_package_handle_standard_args(gen2lib DEFAULT_MSG GEN2LIB_LIBRARIES GEN2LIB_INCLUDE_DIR)
mark_as_advanced(DEMOLIB_LIBRARIES)
